const Koa = require("koa")

const userRouter = require("./router/user")

const app = new Koa();

// app.use((ctx, next) => {
//   ctx.response.body = "Hello"
// })

app.use(userRouter.routes())
app.use(userRouter.allowedMethods())

app.listen(8000, () => {
  console.log("koa初体验服务器启动成功");
})